#ifndef RESOURCEBASE_H
#define RESOURCEBASE_H

#define RATE_TABLE_SIZE 7
#include <QMap>
#include "ResourceDef.h"

class ResourceBase
{
public:
    ResourceBase();
    float getStartMoney();
    RateTable calculateRate(float);
    virtual QMap<IncomeItem,QString> getIncomingItem() = 0;
    virtual QMap<OutgointItem,QString> getOutgointItem() = 0;

private:
    static const float       m_startMoney;
    static const RateTable m_rateTable[RATE_TABLE_SIZE];
};

#endif // RESOURCEBASE_H
